﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="PersonnelRoleManage.aspx.cs" Inherits="StoragePeriod.Web.SysManage.PersonnelRoleManage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
     .layout{background:url(../images/images_59.jpg) no-repeat}
    .left-cloumn{display:none}
    .right-cloumn{width:944px}
    #sms_title_li_0{background:url(../images/images_55.jpg) no-repeat}
    .Left_Search{width:190px;padding-left:10px;height:30px;border-top:1px solid #ccc}
    </style>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#MainContent_PersonnelTree input[type='checkbox']").click(function () {
                if ($(this).attr("checked")) {
                    $(this).parents("table").nextAll("div:first").find("input[type='checkbox']").attr("checked", true);
                }
                else {
                    $(this).parents("table").nextAll("div:first").find("input[type='checkbox']").attr("checked", false);
                }
            });

            $(".role-view input[type=radio]").live('click', function () {
                $(".role-view input[type=radio]").attr('checked', false);
                this.checked = true;
            })

        });
     
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainLeft" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <asp:UpdatePanel UpdateMode="Conditional" ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div class="sms_title">
                <ul>
                    <li><a href="../SysManage/AddPrivliege.aspx">添加权限码</a></li>
                    <li><a href="../SysManage/AddRole.aspx">添加角色</a></li>
                    <li><a href="../SysManage/SysRolePrivilegeManage.aspx">角色权限管理</a></li>
                    <li><a href="../SysManage/PersonnelRoleManage.aspx" style="color: #f90;">人员角色分配</a></li>
                    <li><a href="../SysManage/RawTypeManage.aspx">原料分类指派</a></li>
                    <li><a href="#">计算公式维护</a></li>
                </ul>
            </div>
            <div class="sms_main">
                <div class="sms_left" style="float: right; margin-right: 10px;">
                    <div style="width: 700px; height: 35px; line-height: 35px;">
                        <table width="100%">
                            <tr>
                                <td align="left" width="300">
                                    已选人员:<asp:Label ID="txt_Staff" runat="server" Text=""></asp:Label>
                                </td>
                                <td align="right">
                                    <asp:Button Text="确定" CssClass="ui-button" runat="server" OnClick="Unnamed1_Click" />
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="role-view" style="width: 700px; height: 405px; border: 1px solid #c1dfec;
                        background-color: #fff; overflow-x: hidden; overflow-y: auto;">
                        <asp:GridView ID="gvRoleView" runat="server" CssClass="sp-common-table ui-widget ui-widget-content"
                            AllowPaging="True" DataKeyNames="">
                            <Columns>
                                <asp:TemplateField HeaderText="选择">
                                    <ItemTemplate>
                                        <asp:RadioButton Text="" ID="chose" ToolTip='<%# Eval("角色编码") %>' runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <HeaderStyle CssClass="ui-widget-header" />
                        </asp:GridView>
                    </div>
                </div>
                <div class="sms_right" style="float: left; margin-right: 0px; margin-left: 10px;">
                    <h2>
                        人员列表</h2>
                    <div class="right_Stafflist">
                        <asp:TreeView Width="100%" Style="overflow-y: auto;" Height="370px" ID="PersonnelTree"
                            runat="server" SelectedNodeStyle-BackColor="#999999" ExpandDepth="0" SkipLinkText=""
                            OnSelectedNodeChanged="PersonnelTree_SelectedNodeChanged">
                        </asp:TreeView>
                    </div>
                    <div class="Left_Search">
                        <ul>
                            <li>
                                <asp:TextBox ID="txt_search" runat="server" CssClass="input_txtSearch" Style="width: 120px;"></asp:TextBox></li>
                            <li>
                                <asp:Button ID="Btn_Search" runat="server" CssClass="btn_search" OnClick="Btn_Search_Click" /></li>
                            <li>
                                <asp:Button ID="Btn_Select" runat="server" Text="确定" CssClass="btn_2" OnClick="Btn_Select_Click" /></li>
                        </ul>
                        <div class="clearboth">
                        </div>
                    </div>
                </div>
            </div>
            <div class="sms_foot">
                <asp:HiddenField ID="hdRoleCode" runat="server" />
                <img src="../images/images_58.jpg" width="944" height="8" class="float_left" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
